#!/usr/bin/env python
# -*- coding:utf-8 -*-
import os
from time import sleep


# adb 模拟滑动手势(以步长200 从坐标350,1580 滑动到350,680)
def adb_swipe():
    os.system("adb shell input swipe 350 1580 350 680 200")
    sleep(10)
# adb 模拟点击动作(点击坐标356,890)
def adb_tap():
    os.system("adb shell input input tap 356 890")
    sleep(1.0)
# adb 模拟键盘事件(点击"返回")
def adb_keyevent():
    os.system("adb shell input input keyevent 4")
    sleep(1.0)


if __name__ == "__main__":
    #adb_tap()
    adb_swipe()
    #adb_keyevent()
